---
title: "管道命令"
date: 2019-12-26
categories:
- linux
- shell
tags:
---

<div id="content">
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orga9b0a12">wc :: 计算文件的换行、字符、字节数</a></li>
</ul>
</div>
</div>
<div class="outline-2" id="outline-container-orga9b0a12">
<h2 id="orga9b0a12">wc :: 计算文件的换行、字符、字节数</h2>
<div class="outline-text-2" id="text-orga9b0a12">
<div class="org-src-container">
<pre class="src src-sh"><span style="font-weight: bold; font-style: italic;"># </span><span style="font-weight: bold; font-style: italic;">fat命名空间里面一共有多少个pod</span>
kubectl get pods -nfat | wc -l
<span style="font-weight: bold; font-style: italic;"># </span><span style="font-weight: bold; font-style: italic;">output: 23, 一共22个pod，加一个标题行</span>
</pre>
</div>
</div>
</div>
</div>
<div class="status" id="postamble">
<p class="date">Date: 2019-12-26</p>
<p class="author">Author: gdme1320</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
